<%@page import="java.text.SimpleDateFormat"%>
<%@page import="com.wanmait.cookBook.vo.Topic"%>
<%@page import="java.util.List"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%String path = request.getContextPath();%>
<%List<Topic> waitCheckTopic = (ArrayList<Topic>)request.getAttribute("waitCheckTopic");%>
	<%for(Topic topic:waitCheckTopic){%>
	<div style="width:800px;overflow:hidden;height:200px;background-color:#F0F0F0;margin-top:20px;">
			<div style="float:left;">
				<a href=""><img src="<%=path %>/front/userImages/<%=topic.getUserinfo().getUserFace() %>" style="width:42px;height:42px;border-radius:21px;margin-top:10px"></a>
			</div>
			<div style="float:left; margin-left:30px;margin-top:10px;width:500px;">
				<span><a href="" style="font-size:16px;"><%=topic.getUserinfo().getUserName()%></a></span><br>
				<span style="font-weight:500"><% SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm");String time = format.format(topic.getPublishTime());%> 
            <%=time %></span><br>
				<span style="margin-top:5px;display:block;" ><a href="" style="font-size:14px; font-weight:500"><%=topic.getContext() %></a></span><br>
				<a style="margin-top:-10px;display:block;" href=""><img src="<%=path %>/front/topicImages/<%=topic.getTopicImage() %>" style="width:100px;height:100px;"></a><br>
			</div>
 			<div style="float:left;margin-left:10px;margin-top:75px;">
 					<a class="publishRemove" topicId="<%=topic.getId() %>" style=" display:block; border:1px solid #000;width:80px; height:30px;border-radius:5px;text-align:center;line-height:30px;" href="javascript:void(0);">移除</a>
 			</div>
 		</div>
	<%} %>